<template>
<!-- 首页 -->
  <div>
      <index-header></index-header>
      <router-view></router-view>
      <index-footer></index-footer>
  </div>
</template>

<script>
import IndexHeader from './components/Header'
import IndexFooter from './components/Footer'
export default {
    name: 'index',
    data(){
        return{

        }
    },
    mounted(){
      // let token = this.$cookie.get('userId')
      // if(!token){
      //   this.$router.push('/login')
      // this.$message("您还没有登录，请先登录")
      // }
    },
    components: {
      IndexHeader,
      IndexFooter
    }
}
</script>

<style lang="scss">
</style>